package com.zl.csMall.mine.user.po;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @description: 用户
 * @author: ChenNing
 * @date 2025-10-15 11:14
 */
@Data
@ApiModel(description = "用户 实体")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    private long id;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    private String pwdkey;

    @ApiModelProperty(value = "微信openId")
    private String openId;

    @ApiModelProperty(value = "微信头像图片地址")
    private String wxAvatarUrl;

    @ApiModelProperty(value = "昵称")
    private String name;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "性别")
    private String gender;

    @ApiModelProperty(value = "最近登录时间")
    private Date loginDate;

    @ApiModelProperty(value = "1：是、2：否")
    private Integer isAdmin;

    private String remark;

    private Date createDate;

    private Date updateDate;

}
